package com.kcyu.sfhinvoice.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum UserStatusEnums implements IEnum<String> {

    // 正常
    NORMAL("NORMAL", "正常"),
    // 待激活
    WAIT("WAIT", "待激活"),
    // 冻结
    FREEZE("FREEZE", "冻结"),
    // 初始化
    INIT("INIT", "初始化");

    private final String code;
    private final String name;

    UserStatusEnums(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getValue() {
        return code;
    }

    @JsonValue
    public String getName() {
        return name;
    }
}
